<div class="latest_products clearfix">
  <?php
  $cols = 0;
  foreach ($last_prod as $curr) {
    ?>
    <?php
    if (($cols % 4) == 0) {
      echo '<div class="clearfix"></div>';
    }
    ?>
    <div class="block_item">
      <?php if ($show_image) : ?>
        <div class="item_image">
          <a href="<?php print $curr->product_link ?>"><img src = "<?php print $jshopConfig->image_product_live_path ?>/<?php
    if ($curr->product_thumb_image)
      print $curr->product_thumb_image;
    else
      print $noimage
          ?>" alt="" /></a>
        </div>
      <?php endif; ?>
      <!-- Begin Title & Ma -->
      <div class="item_name">
        <h3 class="lastet_product_title"><a href="<?php print $curr->product_link ?>"><?php print $curr->name; ?></a></h3>
        <!-- Begin manufacturer -->
        <?php if ($curr->manufacturer->name) { ?>
          <div class="author"><?php /* echo JText::_('COM_JSHOPPING_AUTHOR'); */ ?> <span class="name_author"><?php print $curr->manufacturer->name ?></span></div>
        <?php } ?>
        <!-- End Manufacturer -->
        <!-- Begin Chi tiet Dat hang -->
        <div class="buy_detail">
          <span class="button_detail">
            <a class="detail" href="<?php print $curr->product_link ?>"><?php echo JText::_('COM_JSHOPPING_DETAIL'); ?></a></span>&nbsp;
          <span class="button_buy">
            <a class="buy" href="<?php print JRoute::_('index.php?option=com_jshopping&controller=cart&task=add&category_id=' . $curr->product_id . '&product_id=' . $curr->category_id); ?>"><?php echo JText::_('COM_JSHOPPING_BUY'); ?></a></span>
        </div>
        <!-- End Chi tiet dat hang -->
      </div>
    </div>
    <?php
    $cols++;
  }
  ?>

</div>